import {Component, Input, OnInit} from '@angular/core';
import {PriceQuote} from '../price-quote/price-quote.component';

@Component({
  selector: 'app-children',
  templateUrl: './children.component.html',
  styleUrls: ['./children.component.css']
})
export class ChildrenComponent implements OnInit {

  @Input()
  stockCode: string;

  @Input()
  number: number;

  @Input()
  priceQuote: PriceQuote;

  constructor() {
    setInterval(() => {
      this.stockCode = 'Apple';
    },2000);
  }

  ngOnInit() {
  }

}
